<style type="text/css">
	#tag{width:750px; height:auto; text-align:left; padding:10px; border:1px #E0E0E0 solid ; line-height:25px;    border-radius: 5px;}
  	/*input post tab*/
	div.radius_shadow{border:1px solid #DBDBDB;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius: 5px;padding:5px;-webkit-box-shadow:0 0 10px #414141;-moz-box-shadow:0 0 10px #414141;box-shadow:0 0 10px #414141;font-size:12px;background:#fff;}
	span#radius{display:inline-block;float:none;font-size:12px;padding:2px 5px;margin:-2px 5px 15px;border:1px solid #E0E0E0; background-color:#F0F0F0;-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius: 5px;color:#000;}
	.tabinput{margin-left:5px;border:0;}
	a#deltab{cursor:pointer;display:inline-block;color:#808080;margin-left:5px;font-weight:bold;}
	a#deltab:hover{color:#D2D2D2;text-decoration:none;}
	#getTab{ margin-top:10px;border:1px solid #E0E0E0; background-color:#F0F0F0; padding:10px; cursor:pointer;}
</style>
<script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../addons/haoman_qjb/images/tabControl.js"></script>
<input type="hidden" name="reply_id" value="{$reply['id']}" />
<div class="panel panel-default">
    <div class="panel-heading">
        活动设置
    </div>
    <div class="panel-body">  

    	<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">直接调用链接</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" id="link" class="form-control" placeholder="" name="link" disabled="disabled" value="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=entry&m=haoman_qjb&do=index&rid={$rid}">
				<div class="help-block"><b style="color: #FC110D">第一次建立规则，必须保存后再调用这个链接</b>，需要拥有高级接口权限的！</div>
			</div>
		</div> 
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">二维码图片调用</label>
			<div class="col-sm-9 col-xs-12">
				<img src="{$imgUrl}">
				<div class="help-block"><b style="color: #FC110D">第一次建立规则，必须保存后再使用这个二维码图片</b>，需要拥有高级接口权限的！</div>
			</div>
		</div>  

		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动名称</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="title" class="form-control" placeholder="" name="title" value="{$reply['title']}">
            </div>
        </div>
 		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('start_picurl',$reply['start_picurl']);}
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动说明</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:60px;" id='description' name="description" class="form-control" cols="60">{$reply['description']}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动时间</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_daterange('datelimit', array('start'=>date('Y-m-d H:i',$reply['starttime']),'end'=>date('Y-m-d H:i',$reply['endtime'])), true)}
            </div>
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动规则</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_ueditor('rules', $reply['rules']);}
			</div>
		</div>


    </div>
</div>




<div class="panel panel-default">
    <div class="panel-heading">
        风格样式设置
    </div>
    <div class="panel-body"> 
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页模式</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="start_theme" value="0" {if $reply['start_theme']==0} checked="checked"{/if}/>普通模式
				</label>
				<label class="radio-inline">
					<input type="radio" name="start_theme" value="1" {if $reply['start_theme']==1} checked="checked"{/if}/>输入手机号模式
				</label>
				<label class="radio-inline">
					<input type="radio" name="start_theme" value="2" {if $reply['start_theme']==2} checked="checked"{/if}/>口令输入模式
				</label>
				<div class="help-block">
					<span>普通模式：不显示输入手机框或是口令框，直接点击按钮就可以进入抢红包页面。</span><br>
					<span>输入手机号：必须输入手机号码后才能跳转到抢红包页面。</span><br>
					<span style="color: #FC110D">口令输入：必须输入正确的口令才能进入抢红包页面，并且增加一次抽奖机会，同一个口令同一个人只能增一次机会。</span>
				</div>
			</div>
		</div>

		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">首页背景图</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('backpicurl',$reply['backpicurl']);}
				<div class="help-block">大小640px X 1008px,不上传使用默认素材！</div>
            </div>			
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 背景颜色</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_color('backcolor',$reply['backcolor']);}
			</div>
		</div>	

		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">抽奖页顶部背景</label>
            <div class="col-sm-9 col-xs-12" id="qjbpic">
               	{php echo tpl_form_field_image('qjbpic',$reply['qjbpic']);}
				<div class="help-block">图片大小640px X 750px,不上传使用默认素材！</div>
            </div>
        </div>		

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">抽奖红包图</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_image('adpic',$reply['adpic']);}
				<div class="help-block">图片大小450px X 560px,不上传使用默认素材！</div>
			</div>
		</div>

		
		</div>
</div>

<div class="panel panel-default">
	<div class="panel-heading">
		首页秒显广告设置
	</div>
	<div class="panel-body">

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"> 广告时间</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" class="form-control" placeholder="" name="timead" value="{$reply['timead']}">
				<div class="help-block">0为不开启，单位为秒</div>
			</div>
		</div>
		<!--<div class="form-group">-->
			<!--<label class="col-xs-12 col-sm-3 col-md-2 control-label"> 秒显广告间隔时间</label>-->
			<!--<div class="col-sm-9 col-xs-12">-->
				<!--<input type="text" class="form-control" placeholder="" name="timenum" value="{$reply['timenum']}">-->
				<!--<div class="help-block">距离下次出现的时间段</div>-->
			<!--</div>-->
		<!--</div>-->
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">秒显广告图</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_image('tiemadpic',$reply['tiemadpic']);}
				<div class="help-block">秒显广告图，640*1136</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"> 广告链接</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" class="form-control" placeholder="" name="timeadurl" value="{$reply['timeadurl']}">
				<div class="help-block">http://开头</div>
			</div>
		</div>

	</div>

</div>

<div class="panel panel-default">
	<div class="panel-heading">
		奖品设置<span style="font-size: 18px;color: red">(所有奖品的概率总和超过100%，那就是每抽必中，不需要的奖项请把数量和概率设成0就行)</span>
	</div>
	<div class="panel-body" >
	<div class="form-group">
            <div class="col-sm-12 col-xs-12">
				<div class="panel panel-default" style="border: none;-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0);
    box-shadow: 0 1px 1px rgba(0,0,0,0);">
               	<div class="panel-body table-responsive" style="border: none;">
				    <!-- Nav tabs -->
            	    <ul class="nav nav-tabs" role="tablist">
               	        {loop $prize $id $prizes}
						<li role="presentation"{if $id==0} class="active"{/if} id="prizeid{$id}">
                  	        <a href="#prize{$id}" role="tab" data-toggle="tab">奖品{php echo $id+1}</a>
                	    </li>
					    {/loop}
            	    </ul>
            		<div class="tab-content">
					    {loop $prize $id $prizes}
						<input type="hidden" name="prize_id_{$id}" value="{$prizes['id']}" />
                		<div role="tabpanel" class="tab-pane{if $id==0} active{/if}" id="prize{$id}">
                		<div class="form-group">
                   		    <label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品类型</label>
                    		<div class="col-sm-9">
                    			<label class="radio-inline">
									<input type="radio" name="ptype_{$id}" value="0" {if $prizes['ptype'] == '0'} checked="checked"{/if} onclick="$('#p{$id}').show();$('#cp{$id}').hide();$('#sp{$id}').show();"/>现金红包
								</label>
								<label class="radio-inline">
									<input type="radio" name="ptype_{$id}" value="1" {if $prizes['ptype'] == '1'} checked="checked"{/if} onclick="$('#p{$id}').hide();$('#cp{$id}').show();$('#sp{$id}').show();"/>微信卡券
								</label>
								<label class="radio-inline">
									<input type="radio" name="ptype_{$id}" value="2" {if $prizes['ptype'] == '2'} checked="checked"{/if} onclick="$('#p{$id}').hide();$('#cp{$id}').hide();$('#sp{$id}').show();"/>实物
								</label>
								

							</div>
                		</div>
                		<div class="form-group">
                    		<label class="col-xs-12 col-sm-3 col-md-2 control-label">名称</label>
                    		<div class="col-sm-9">
                        		<input class="form-control" type="text" value="{$prizes['prizename']}" name="prizename_{$id}">
                    		</div>
                		</div>
						<div class="form-group" id="p{$id}" {if $prizes['ptype'] != '0'}style="display: none;"{/if}>
                    		<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span id="p{$id}_name"></span>金额</label>
                    		<div class="col-sm-5">
								<div class="input-group">
			                    <input type="text" class="form-control" name="credit_{$id}" value="{php echo $prizes['credit']/100}" />
			                    <span class="input-group-addon" style="border-left: none;border-right: none;">-</span>
			                    <input type="text" class="form-control" name="credit2_{$id}" value="{php echo $prizes['credit2']/100}" />
			                    <span class="input-group-addon" style="border-left: none;border-right: none;">元</span>
			                </div>
			                <div class="help-block">可以设成区间，右侧必须大于左侧，只能正数不能为负数，可以设小数点后两位，最少0.01元。设成固定金额的话，左右一致就行。</div>
                    		</div>
                		</div>

						<div class="form-group" id="cp{$id}" {if $prizes['ptype'] != '1'}style="display: none;"{/if}>
						<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span id="p{$id}_name"></span>卡券ID</label>
						<div class="col-sm-9">
							<input class="form-control" type="text" value="{$prizes['couponid']}" name="couponid_{$id}">
						</div>
						</div>
						
                		<div class="form-group" id="sp{$id}" >
                    		<label class="col-xs-12 col-sm-3 col-md-2 control-label">数量</label>
                    		<div class="col-sm-9">
                        		<div class="input-group">
                            		<input class="form-control" type="text" value="{$prizes['awardstotal']}" name="awardstotal_{$id}">
                            		<span class="input-group-addon">还剩：{php echo $prizes['awardstotal'] - $prizes['prizedraw']}</span>
                        		</div>
                    		</div>
                		</div>
						<div class="form-group">
                    		<label class="col-xs-12 col-sm-3 col-md-2 control-label">概率</label>
                    		<div class="col-sm-9">
                        		<div class="input-group">
                            		<input class="form-control" type="text" value="{$prizes['awardspro']}" name="awardspro_{$id}">
                            		<span class="input-group-addon">%</span>
                        		</div>
                    		</div>
                		</div>
                		<div class="form-group">
                    		<label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品图片</label>
                    		<div class="col-sm-9">
							    {php echo tpl_form_field_image('awardsimg_'.$id,$prizes['awardsimg']);}
							    <div class="help-block">奖品显示图片 图片大小200px X 200px</div>
							</div>
                		</div>
                		</div>
						{/loop}
					</div>
				</div>
				</div>
			</div>
        </div>

    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
       参数设置
    </div>
    <div class="panel-body">

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否显示奖品</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="is_show_prize" value="0" {if $reply['is_show_prize']==0} checked="checked"{/if}/>显示
				</label>
				<label class="radio-inline">
					<input type="radio" name="is_show_prize" value="1" {if $reply['is_show_prize']==1} checked="checked"{/if}/>不显示
				</label>
				<div class="help-block">控制在前台页面是否显示奖品图片！</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否显示奖品数量</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="is_show_prize_num" value="0" {if $reply['is_show_prize_num']==0} checked="checked"{/if}/>显示
				</label>
				<label class="radio-inline">
					<input type="radio" name="is_show_prize_num" value="1" {if $reply['is_show_prize_num']==1} checked="checked"{/if}/>不显示
				</label>
				<div class="help-block">控制在前台页面是否显示奖品数量！</div>
			</div>
		</div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">最近中奖显示</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="rec_show" value="{$reply['rec_show']}" />
					<span class="input-group-addon">条</span>
				</div>
				<div class="help-block">控制抽奖页面底部的最近中奖信息显示条数，0为不显示!</div>
            </div>
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">兑奖资料</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="ziliao" value="0" {if $reply['ziliao']==0} checked="checked"{/if}/>中奖后填
				</label>
				<label class="radio-inline">
					<input type="radio" name="ziliao" value="1" {if $reply['ziliao']==1} checked="checked"{/if}/>抽奖前填写
				</label>
				<label class="radio-inline">
					<input type="radio" name="ziliao" value="2" {if $reply['ziliao']==2} checked="checked"{/if}/>不需要填写
				</label>
				<div class="help-block">控制前台填手机号码、昵称等的方式!首页模式为”输入手机号“时，此项设置无效！</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否填写地址</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="credit1" value="1" {if $reply['credit1']==1} checked="checked"{/if}/>不需要
				</label>
				<label class="radio-inline">
					<input type="radio" name="credit1" value="0" {if $reply['credit1']==0} checked="checked"{/if}/>需要
				</label>
				<div class="help-block">控制前台资料填写时，是否需要填写地址！</div>
			</div>
		</div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">每人最多获奖次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="award_times" value="{$reply['award_times']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">单个用户最多共享几个奖项，0为不限制，推荐设置为1次!</div>
            </div>
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">每人每天最多获奖次数</label>
			<div class="col-sm-9 col-xs-6">
				<div class="input-group">
					<input type="text" class="form-control" name="today_most_times" value="{$reply['today_most_times']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">单个用户每天最多共享几个奖项，0为不限制，推荐设置为1次!</div>
			</div>
		</div>

		<!--<div class="form-group">-->
			<!--<label class="col-xs-12 col-sm-3 col-md-2 control-label">每人每天最多获取红包数</label>-->
			<!--<div class="col-sm-9 col-xs-6">-->
				<!--<div class="input-group">-->
					<!--<input type="text" class="form-control" name="hb_today_times" value="{$reply['hb_today_times']}" />-->
					<!--<span class="input-group-addon">次</span>-->
				<!--</div>-->
				<!--<div class="help-block">单个用户每天最多获取的红包数量，0为不限制，推荐设置为1次!</div>-->
			<!--</div>-->
		<!--</div>-->

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">每人每天最多抽奖次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="most_num_times" value="{$reply['most_num_times']}"/>
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block"> 0 为不限制 抽完总数就不能抽了!</div>
            </div>
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">版权信息</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" id="copyright" class="form-control" placeholder="" name="copyright" value="{$reply['copyright']}">
				<div class="help-block">版权信息，如果不填写，默认为公众号名称！</div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">提现最低额度</label>
			<div class="col-sm-9 col-xs-6">
				<div class="input-group">
				<input type="number" id="share_acid" class="form-control" placeholder="" name="share_acid" value="{php echo $reply['share_acid']/100}">
				<span class="input-group-addon">元</span>
				</div>
				<div class="help-block">用户提现最低额度<span style="color: red">必须大于1元小于200元</span> 。设置为0表示，用户申请后直接下发无需要后台审核</div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">每日最多申请提现次数</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" id="number_times" class="form-control" placeholder="" name="number_times" value="{$reply['number_times']}">
				<div class="help-block">粉丝每天最多的提现申请次数，0表示不限制</div>
			</div>
		</div>
		<div class="form-group" style="display: block;">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">实物核销密码</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" id="password" class="form-control" placeholder="" name="password" value="{$reply['password']}">
				<div class="help-block">若有实物需要核销的密码,0表示不设置密码</div>
			</div>
		</div>

    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
       分享设置
    </div>
    <div class="panel-body table-responsive">

        <!-- <div class="tab-content"> -->
        <div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享模式</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="share_type" value="0" {if $reply['share_type']==0} checked="checked"{/if}/>默认模式
				</label>
				<label class="radio-inline">
					<input type="radio" name="share_type" value="1" {if $reply['share_type']==1} checked="checked"{/if}/>强制分享朋友圈
				</label>
				<label class="radio-inline">
					<input type="radio" name="share_type" value="2" {if $reply['share_type']==2} checked="checked"{/if}/>禁止分享功能
				</label>
				<div class="help-block">
					<span>默认模式：正常使用分享转发增加次数的功能，不强制分享也不禁止。</span><br>
					<span>强制分享朋友圈：强制粉丝必须分享一次活动页面到朋友圈才能参与抽奖。</span><br>
					<span>禁止分享：粉丝将无法使用分享按钮的功能。</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享朋友圈后是否赠送红包</label>
			<div class="col-sm-9">
				<label class="radio-inline">
					<input type="radio" name="turntable" value="8" id="one" {if $reply['turntable']==8} checked="checked"{/if}/>不赠送
				</label>
				<label class="radio-inline">
					<input type="radio" name="turntable" value="9"  id="two" {if $reply['turntable']==9} checked="checked"{/if}/>赠送
				</label>
				<div class="help-block">控制粉丝分享朋友圈后，是否赠送其红包！<span style="color: red;">(每个粉丝只能领一次红包)</span></div>
			</div>
		</div>


	<div class="form-group money" {if $reply['turntable'] == 9}style = "display: block;"{else}style = "display: none;"{/if}>
	<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span id=""></span>金额</label>
	<div class="col-sm-5">
		<div class="input-group">
			<input type="text" class="form-control" name="ticketinfo1" value="{$num1}" />
			<span class="input-group-addon" style="border-left: none;border-right: none;">-</span>
			<input type="text" class="form-control" name="ticketinfo2" value="{$num2}" />
			<span class="input-group-addon" style="border-left: none;border-right: none;">元</span>
		</div>
		<div class="help-block">可以设成区间，右侧必须大于左侧，只能正数不能为负数，可以设小数点后两位，最少0.01元。设成固定金额的话，左右一致就行。</div>
	</div>
</div>

	    <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否强制关注</label>
            <div class="col-sm-9 col-xs-12">
           	    <input type="text" class="form-control" name="share_url" value="{$reply['share_url']}">
                <div class="help-block">引导关注页的链接! 链接为空既不需要关注，推荐用微信平台的素材库，转成短地址。<a target="_blank" href="http://www.dwz.cn/">短网址转换</a></div>
            </div>
        </div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享增加次数</label>
			<div class="col-sm-9 col-xs-6">
				<div class="input-group">
					<input type="text" class="form-control" name="sharenum" value="{$reply['sharenum']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">分享以后，被邀约人打开分享链接一次，分享人获取多少次机会 0为分享不赠送</div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">分享增加上限</label>
			<div class="col-sm-9 col-xs-6">
				<div class="input-group">
					<input type="text" class="form-control" name="sharenumtop" value="{$reply['sharenumtop']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">通过分享后总共能获得的抽奖次数上限，不能小于分享增加次数</div>
			</div>
		</div>

	    <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享标题</label>
            <div class="col-sm-9 col-xs-12">
           	    <input type="text" class="form-control" name="share_title" value="{$reply['share_title']}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享描述</label>
            <div class="col-sm-9 col-xs-12">
 	            <textarea style="height:60px;" name="share_desc" class="form-control" cols="60">{$reply['share_desc']}</textarea>
            </div>
        </div>

		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">转发图</label>
            <div class="col-sm-9 col-xs-12">
           	    {php echo tpl_form_field_image('share_imgurl',$reply['share_imgurl']);}
            </div>
        </div>

			<!-- </div> -->
		</div>
	</div>	

	<div class="panel panel-default">
    <div class="panel-heading">
        黑白名单设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">开关设置</label>
            <div class="col-sm-9">
                <label class="radio-inline">
                    <input type="radio" name="getip" value="0" {if $reply['getip']==0} checked="checked"{/if}"/>关闭限制
                </label>
                <label class="radio-inline">
                    <input type="radio" name="getip" value="1" {if $reply['getip']==1} checked="checked"{/if}"/>允许以下地区粉丝参与
                </label>
                <label class="radio-inline">
                    <input type="radio" name="getip" value="2" {if $reply['getip']==2} checked="checked"{/if}"/>禁止以下地区粉丝参与
                </label>
            </div>
        </div>

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">活动地区</label>
            <div class="col-sm-9 col-xs-6">
            <input type="hidden" name="getip_addr" id="getaddr" value="">
            <div id="tag"></div>
            <div class="help-block">仅支持市级城市，请直接填入市级名称(<span style="color: #ff3807">不需要后面的“市”和前面的省级名称</span>),每输入一个地区请按一次回车，不能有空格，最多输入40个城市！</div> 
            </div>
        </div>


    </div>
</div>

<script type="text/javascript">
	$(function(){
		$("#tag").tabControl({maxTabCount:40,tabW:80},"{$reply['getip_addr']}");
		$("input[name='submit']").click(function(){
			var v = $("#tag").getTabVals();
			$("#getaddr").val(v);
		});
	});

	$(function(){
		$("input[type='radio']").click(function(){
			var id= $(this).attr("id");
			var fs=$("#"+id).val();

			if(fs == 9){
				$(".money").show();
			}
			if(fs == 8){
				$(".money").hide();
			}

		});
	});
</script>

</div>
